8.8
HIGH CVSS 3.1
CVE-2026-7838
UltraVNC viewer heap buffer overflow via integer overflow in RFB connection-failure reason length
Description

UltraVNC viewer through 1.8.2.2 contains an integer overflow leading to a heap buffer overflow in the RFB protocol failure-response parsing path. In vncviewer/ClientConnection.cpp, the 4-byte network-supplied reasonLen field (type CARD32) is passed as reasonLen+1 to CheckBufferSize(). Because both operands are unsigned 32-bit, a reasonLen of 0xFFFFFFFF overflows to 0, causing CheckBufferSize to allocate only 256 bytes. The subsequent ReadString(m_netbuf, reasonLen) call then performs ReadExact for the original 4 GiB length into that 256-byte heap buffer. This overflow is reachable via rfbConnFailed (auth-scheme negotiation) and rfbVncAuthFailed (post-handshake) message types without successful authentication. A malicious VNC server, or any man-in-the-middle on the RFB stream, can trigger this condition when the victim viewer connects, potentially resulting in remote code execution as the user running the viewer. The crash was confirmed with AddressSanitizer on a portable reproduction harness (heap-buffer-overflow WRITE at offset 256).

INFO

Published Date :

July 1, 2026, 3:33 a.m.

Last Modified :

July 1, 2026, 3:33 a.m.

Remotely Exploit :

Yes !

Source :

securin
Affected Products

The following products are affected by CVE-2026-7838 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Uvnc ultravnc
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH 33c584b5-0579-4c06-b2a0-8d8329fcab9c
CVSS 4.0 HIGH 33c584b5-0579-4c06-b2a0-8d8329fcab9c
CVSS 4.0 HIGH 33c584b5-0579-4c06-b2a0-8d8329fcab9c
Solution
Apply patches to UltraVNC to fix heap buffer overflow in RFB protocol parsing.
  • Update UltraVNC viewer to a patched version.
  • Verify patch installation.
  • Monitor for exploit attempts.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-7838 vulnerability anywhere in the article.

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.